package com.naiterui.ehp.bs.esign.utils;

import com.naiterui.ehp.bp.constants.CommonConstant;
import com.naiterui.ehp.bp.utils.lang.ConfigUtil;

/**
 * @author guoyongxiang
 * @date 2019/12/2 11:13
 * @since 1.0.0
 */
public class Constants {

    public static final String TASK_SCHEDULE_HOST = "schedule.host.url";

    /**
     * 签名密码缓存键
     */
    public static final String ESIGN_PWD_CACHE_PRE = CommonConstant.REDIS_PRE_ESIGN + "signPwd_";
    /**
     * 缓存最近的签名密码
     */
    public static final String ESIGN_PWD_CACHE_NEWEST = CommonConstant.REDIS_PRE_ESIGN + "signPwd_newest";
    /**
     * 缓存上一次密码
     */
    public static final String ESIGN_PWD_CACHE_LASTED = CommonConstant.REDIS_PRE_ESIGN + "signPwd_lasted";

    public static final String USER_TITLE_DR = "医生";
    public static final String USER_TITLE_PH = "药师";
    public static final String USER_TITLE_AL_PH = "调配药师";

    public static final String BASE_PATH = ConfigUtil.getString("naiterui.image.basePath");

    /**
     * 签名文件前缀
     */
    public static final String SIGN_FILENAME_PRE = ConfigUtil.getString("esign.sign.filename.pre");
    /**
     * 处方签名文件目录
     */
    public static final String PREC_BASE_PATH_PREFIX = ConfigUtil.getString("tuijian.generate.prescription.path") + "/esign";
    /**
     * 病例签名文件目录
     */
    public static final String EMR_PDF_FILE_BASE_PATH = ConfigUtil.getString("emr.file.pdf.path");
    /**
     * 医生签名图片路径
     */
    public static final String SEAL_PATH_PRE_DR = ConfigUtil.getString("esign.seal.path") + "dr/";
    /**
     * 药师签名文件路径
     */
    public static final String SEAL_PATH_PRE_PH = ConfigUtil.getString("esign.seal.path") + "ph/";
    /**
     * 调配药师签名文件路径
     */
    public static final String SEAL_PATH_PRE_AL_PH = ConfigUtil.getString("esign.seal.path") + "al/ph/";
    /**
     * 医生免签协议路径
     */
    public static final String ESIGN_INFORM_PATH_DR = ConfigUtil.getString("esign.inform.path") + "dr/";
    /**
     * 药师免签协议路径
     */
    public static final String ESIGN_INFORM_PATH_PH = ConfigUtil.getString("esign.inform.path") + "ph/";


    /**
     * 会诊受邀专家签署路径
     */
    public static final String ESIGN_GROUP_CONSULT_PATH = "/groupConsult/pdf/";

    /**
     * 会诊受邀专家签署路径
     */
    public static final String ESIGN_TARGET_DR_PATH = ESIGN_GROUP_CONSULT_PATH + "target/";

    /**
     * 会诊发起医师签署路径
     */
    public static final String ESIGN_SOURCE_DR_PATH = ESIGN_GROUP_CONSULT_PATH + "source/";


    public static final String TYPEFACE_XINGKAI = "xingkai.ttf";
    public static final String TYPEFACE_ZHENGKAI = "zhengkai.ttf";
}
